ποΈGitΠ―ΡΠ°ποΈ
Language support and live preview for Micron, the markup used by Reticulum Nomad Network page nodes
σ° Files β’ σ° Releases (2) β’ σ±£ Work (0) β’ σ° Commits (4) β’ σ°¬ Branches (1) β’ σ°Ό Tags (3) β’ σ° Thanks (1) β’ ο Stats
>Micron for VS Code / VSCodium
Language support and live preview for Micron, the markup used by Reticulum Nomad Network page nodes.
Supported Editors: VS Code 1.85+ based editors like VSCodium or many others.
Features
β’ .mu files open as Micron (syntax highlighting and snippets)
β’ Python shebang .mu pages use Micron Python mode with quiet tag highlights.
β’ Native color picker on Fxxx / Bxxx, plus Hex <--> Micron converters
β’ Micron: Open Syntax Reference cheat sheet (Ctrl+K M)
β’ Live preview via micron-parser-js by RFNexus
β’ Scripted pages: shebang .mu files are executed and stdout is previewed
β’ Form fields / request links re-run pages with env values (name and field_name)
β’ Field panel in the preview toolbar to edit / clear env fields
β’ Local /page/... and :/page/... navigation
β’ Local /file/... open/reveal from the node files/ directory
β’ Optional watch of files/ to refresh listings automatically
β’ Micron partials {urlT383838refreshfields} via micron-parser-js bindPartials
β’ Script errors show exit code, stderr, and timeouts in the preview
Contributing, Issues or Ideas
Contact LXMF: f489752fbef161c64d65e385a4e9fc74 - Ivan
Install
T282828
code --install-extension rns-micron-0.1.1.vsix
Use T383838codium instead of T383838code if that is your editor.
Development
T282828
Tffa657cd rns-micron-vsix
npm install
npm run compile
Then launch Run Micron Extension (F5).
Usage
1. Open a T383838.mu file
2. Micron: Open Preview to the Side (T383838Ctrl+K V / T383838Cmd+K V)
3. Edit and Refresh (or rely on live update / T383838files/ watch)
Preview toolbar:
β’ Back / Refresh / Raw
β’ Fields β edit T383838query=doom style env values, Apply or Clear
Making Micron easier
β’ Type BT383838 for tag completions (colors, links, fields, partials)
β’ Select text β wrap bold / color from the command palette or status bar
β’ Problems panel flags unclosed tags and missing local T383838/page / T383838/file links
β’ Status bar Micron button opens a quick action menu
β’ T383838micron.preview.requestEnv simulates T383838link_id / T383838remote_identity for scripts
F5 / debugging
On a T383838.mu file, F5 opens the side preview by default (T383838micron.debug.f5Action: T383838preview).
Set T383838micron.debug.f5Action to T383838python if you want F5 to launch the Python debugger on the page script (requires the Python extension).
To develop this extension itself, open the T383838rns-micron-vsix folder and run Run Micron Extension from the Run and Debug view (that uses an Extension Host launch config, not Micron Python).
Keybindings
Defaults (change anytime in Keyboard Shortcuts):
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β Command β Default β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ€
β Open Preview β T383838ctrl+shift+v / T383838cmd+shift+v β
β Open Preview to the Side β T383838ctrl+k v / T383838cmd+k v β
β Refresh Preview β T383838ctrl+shift+r / T383838cmd+shift+r β
ββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββ
Settings
βββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β Setting β Default β Description β
βββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β T383838micron.preview.autoOpen β T383838false β Open side preview when focusβ¦ β
β T383838micron.preview.watchFiles β T383838true β Refresh when T383838files/ changes β
β T383838micron.preview.liveUpdate β T383838true β Update while typing β
β T383838micron.preview.debounceMs β T383838120 β Live-update delay β
β T383838micron.preview.executeScripts β T383838true β Run shebang pages β
β T383838micron.preview.requireExecutableBit β T383838false β Require T383838+x like page-node β
β T383838micron.preview.scriptTimeoutMs β T38383815000 β Script timeout β
β T383838micron.preview.darkTheme β T383838true β Dark Micron theme β
β T383838micron.preview.extraEnv β T383838{} β Extra env for scripts β
β T383838micron.preview.defaultFields β T383838{} β Default form field values β
β T383838micron.editor.pythonShebangLanguage β T383838true β Micron Python mode for Pythoβ¦ β
β T383838micron.editor.hovers β T383838false β Tag hover tooltips in the edβ¦ β
β T383838micron.editor.diagnostics β T383838true β Problems for bad links / uncβ¦ β
β T383838micron.preview.requestEnv β T383838{link_id, remote_identity} β Simulated request env for scβ¦ β
βββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ
Commands
β’ T383838Micron: Open Syntax Reference
β’ T383838Micron: Insert Foreground Color / T383838Insert Background Color
β’ T383838Micron: Convert Hex to Micron Color / T383838Convert Micron Color to Hex
β’ T383838Micron: Open Preview
β’ T383838Micron: Open Preview to the Side
β’ T383838Micron: Refresh Preview
β’ T383838Micron: Toggle Raw Micron Output
Package
T282828
npm run package
Creates T383838dist/rns-micron-{version}.vsix.
Third-party
See T383838THIRD_PARTY.txt for vendored micron-parser-js and DOMPurify notices.
Served by rngit 1.4.2 - Generated in 0.13s